/************************************************************************

								Heroes IV
					  Copyright 2001, The 3DO Company

	------------------------------------------------------------------
  					       cached_grail_data_source.cpp

	$Header: $

	$NoKeywords: $

 ************************************************************************/

#include "precompiled.h"
#include "cached_grail_data_source.h"

// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
bool t_cached_grail_data_source::gets_global_grail_effects( t_town_type alignment ) const
{
	if ( !m_data_known[ alignment ] )
	{
		// Get from data source
		m_data[ alignment ] = m_original_source.gets_global_grail_effects( alignment );
		m_data_known.set( alignment );
	}

	// Return cached data
	return m_data[ alignment ];
}
